﻿<%@ Page Title="Cadastro de Funcionário" Language="C#" MasterPageFile="~/SiteCadastro.Master" AutoEventWireup="true" CodeBehind="FuncionarioView.aspx.cs" Inherits="ASPLanchonete.Telas.FuncionarioView" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="form" runat="server">
    <h1>
        Cadastro de Funcionário
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
    </h1>
    <br />
    <p>
        <asp:Label Text="Código:" runat="server" Width="300"/>
        <asp:TextBox ID="txtCodigo" runat="server" Width="300"  CssClass="textBox" 
            Enabled="False">0</asp:TextBox>
    </p>
    <p>
        <asp:Label Text="Nome Funcionário" runat="server" Width="300"/>
        <asp:TextBox ID="txtFuncionario" runat="server" Width="300" CssClass="textBox" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFuncionario" ErrorMessage="*Obrigatório" ForeColor="Red" />
    </p>
    <p>
        <asp:Label Text="Data Nascimento" runat="server" Width="300"/>
        <asp:TextBox ID="txtDataNascimento" runat="server" Width="300" CssClass="textBox" />
        <cc1:CalendarExtender ID="CalDataNascimento" runat="server" TargetControlID="txtDataNascimento" Animated="true" Format="d/M/yyyy" />
        <cc1:MaskedEditExtender ID="MskDataNascimento" runat="server" 
            TargetControlID="txtDataNascimento" InputDirection="LeftToRight" 
            ClearMaskOnLostFocus="False" MaskType="Date" Mask="99/99/9999" 
            UserDateFormat="DayMonthYear" CultureName="pt-BR"/>
    </p>
    <p>
        <asp:Label Text="Telefone Residencial" runat="server" Width="300"/>
        <asp:TextBox ID="txtTelefoneResidencial" runat="server" Width="300" CssClass="textBox" />
        <cc1:MaskedEditExtender ID="MskTelefoneResidencial" runat="server" Mask="(99)9999-9999" TargetControlID="txtTelefoneResidencial" InputDirection="LeftToRight" ClearMaskOnLostFocus="False" />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
            ErrorMessage="*Preenchimento inválido" ForeColor="Red" 
            ControlToValidate="txtTelefoneResidencial" 
            ValidationExpression="^\(?\d{2}\)?[\s-]?\d{4}-?\d{4}$"></asp:RegularExpressionValidator>
    </p>
    <p>
        <asp:Label Text="Telefone Celular" runat="server" Width="300"/>
        <asp:TextBox ID="txtTelefoneCelular" runat="server" Width="300" CssClass="textBox" />
        <cc1:MaskedEditExtender ID="MskTelefoneCelular" runat="server" Mask="(99)9999-9999" TargetControlID="txtTelefoneCelular" InputDirection="LeftToRight" ClearMaskOnLostFocus="False" />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
            ErrorMessage="*Preenchimento inválido" ForeColor="Red" 
            ControlToValidate="txtTelefoneCelular" 
            ValidationExpression="^\(?\d{2}\)?[\s-]?\d{4}-?\d{4}$"></asp:RegularExpressionValidator>
    </p>
    <p>
        <asp:Label Text="Email" runat="server" Width="300"/>
        <asp:TextBox ID="txtEmail" runat="server" Width="300" CssClass="textBox" />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ErrorMessage="*Preenchimento inválido" ForeColor="Red" 
            ControlToValidate="txtEmail" ValidationExpression="^([0-9a-zA-Z]+([_.-]?[0-9a-zA-Z]+)*@[0-9a-zA-Z]+[0-9,a-z,A-Z,.,-]*(.){1}[a-zA-Z]{2,4})+$"></asp:RegularExpressionValidator>
    </p>
    <p>
        <asp:Label Text="Cargo" runat="server" Width="300"/>
        <asp:DropDownList ID="drdListaTipoCargo" runat="server" Width="300"/>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="drdListaTipoCargo" ErrorMessage="*Obrigatório" ForeColor="Red" InitialValue="0" />
    </p>
    <p>
        <asp:Label Text="Ativo" runat="server" Width="300"/>
        <asp:CheckBox ID="ckbAtivo" runat="server" Checked="true"/>
    </p>
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="grid" runat="server">
</asp:Content>